home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / metacity.postinst < prev    next >
Encoding:
Text File  |  2007-05-02  |  712 b   |  32 lines

  1. #! /bin/sh
  2.  
  3. set -e
  4.  
  5. case "$1" in
  6.     configure)
  7.         # register the alternatives of x-window-manager manually
  8.     # because dh_installwm doesn't register manpage as slave yet.
  9.     update-alternatives --install /usr/bin/x-window-manager \
  10.         x-window-manager /usr/bin/metacity 60 \
  11.         --slave /usr/share/man/man1/x-window-manager.1.gz \
  12.         x-window-manager.1.gz /usr/share/man/man1/metacity.1.gz
  13.  
  14.     ;;
  15.     abort-upgrade|abort-remove|abort-deconfigure)
  16.         ;;
  17.     *)
  18.         echo "postinst called with unknown argument \`$1'" >&2
  19.     exit 1
  20.     ;;
  21. esac
  22.  
  23. # Automatically added by dh_installmenu
  24. if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
  25.     update-menus
  26. fi
  27. # End automatically added section
  28.  
  29.  
  30. exit 0
  31.  
  32.